package com.zbkj.crmeb.merchant.admin.controller;


import com.crmeb.core.common.CommonResult;
import com.zbkj.crmeb.agent.model.Agent;
import com.zbkj.crmeb.agent.service.AgentService;
import com.zbkj.crmeb.system.service.SystemAdminService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


/**
 * <p>
 * 服务商-配置
 * </p>
 *
 * @author lvmd
 * @date 2022-02-22
 */
@RestController
@RequestMapping("/api/admin/mer/agent/config")
@Api(tags = "服务商-配置")
public class MerAgentConfigController {

    @Autowired
    SystemAdminService systemAdminService;
    @Autowired
    AgentService agentService;

    @ApiOperation(value = "服务商配置")
    @PostMapping("/detail")
    public CommonResult<Agent> getAgentConfig() {
        return CommonResult.success(agentService.getById(systemAdminService.getAdminAgentId()));
    }

}

